{template Public:Admin:header}

<form action="/admin/{echo CONTROLLER_NAME}/{echo ACTION_NAME}/id/{echo $id}" method="post" id="SubmitData">
     <table class="table table-hover">
          <thead>
               <tr>
                    <th width="20%"> <i class="fa fa-circle-o"></i> 项目名称 </th>
                    <th>
                         <div class="col-lg-8"><i class="fa fa-code"></i> 项目值</div>
                    </th>
               </tr>
          </thead>
          <tbody>

               <tr>
                    <td> 标题 </td>
                    <td>
                         <div class="col-lg-8">
                              <input type="text" name="subject" value="{if !empty($manage['subject'])}{echo $manage['subject']}{/if}" class="form-control">
                         </div>
                    </td>
               </tr>
               
                 <tr>
                    <td class="width_160">类型</td>
                    <td>
                         <div class="col-lg-8">
                              <select name="type" class="form-control">
                                   <option value="0" {if empty($manage['type'])}selected="selected" {/if}>选择类型</option>
                                   <option value="1" {if !empty($manage['type'])}{if $manage['type']==1} selected="selected" {/if}{/if}>首页</option>
                                   <option value="2" {if !empty($manage['type'])}{if $manage['type']==2} selected="selected" {/if}{/if}>VIP页</option>
                              </select>
                         </div>
                    </td>
               </tr>
               
                <tr>
                    <td> 链接 </td><td>
                         <div class="col-lg-8">
                              <input type="text" name="link" value="{if !empty($manage['link'])}{echo $manage['link']}{/if}" class="form-control">
                         </div>
                    </td>
               </tr>
               
               
                <tr>
                    <td> 图片地址(上传自动获取) </td><td>
                         <div class="col-lg-8">
                              <input type="text" name="image" value="{if !empty($manage['image'])}{echo $manage['image']}{/if}" class="form-control">
                         </div>
                    </td>
               </tr>

               
               <tr>
                    <td> 上传图片 </td><td>
                         <div class="col-lg-8">
                           <div class="row">
                           		 <div class="col-lg-12">{if !empty($manage['image'])}<img src="/{echo $manage['image']}" width="600"/>{/if}</div>
                                 <script>var upload_extensions_title='Images'; var upload_extensions='gif,jpg,jpeg,png'; var upload_mimetypes='image/*'; </script>
                                 {template Public:Page:webuploader}
                                 <div class="col-lg-12">
                                <div class="form-group has-feedback">
                                <a href="javascript:void(0);" id="UploadFile">上传图片</a>
                                </div>
                                </div>
                            </div>
                          </div>
                    </td>
               </tr>
               
                <tr>
                    <td> 排序 </td>
                    <td>
                         <div class="col-lg-8">
                              <input type="text" name="displayorder" value="{if !empty($manage['displayorder'])}{echo $manage['displayorder']}{/if}" class="form-control">
                         </div>
                    </td>
               </tr>
                                               
               <tr>
                    <td class="width_160">状态</td>
                    <td>
                         <div class="col-lg-8">
                              <select name="status" class="form-control">
                                   <option value="0" {if empty($manage['status'])}selected="selected" {/if}>是否开启</option>
                                   <option value="1" {if !empty($manage['status'])}{if $manage['status']==1} selected="selected" {/if}{/if}>正常</option>
                                   <option value="2" {if !empty($manage['status'])}{if $manage['status']==2} selected="selected" {/if}{/if}>关闭</option>
                              </select>
                         </div>
                    </td>
               </tr>
               
               
          </tbody>
     </table>
     <div class="padding_20 text-center">
          <input type="hidden" name="Submit" value="true"/>
          <button class="btn btn-primary shiny" type="submit">提 交</button>
          <input type="hidden" name="datatype" value="json"/>
          <input type="hidden" name="catid" id="Catid" value="{if !empty($manage['catid'])}{echo $manage['catid']}{/if}"/>
          <input type="hidden" name="id" value="{echo $id}"/>
     </div>
</form>
			
{template Public:Admin:footer}